package com.nn.smart.bus.feign.fallback;

import com.nn.smart.bus.commons.tools.constant.ServiceConstant;
import com.nn.smart.bus.commons.tools.utils.ModuleUtils;
import com.nn.smart.bus.commons.tools.utils.Result;
import com.nn.smart.bus.dto.UploadToOssDTO;
import com.nn.smart.bus.feign.OssFeignClient;
import org.springframework.stereotype.Component;

/**
 * @author nanning
 */
@Component
public class OssFeignClientFallback implements OssFeignClient {

    @Override
    public Result<String> uploadFile(UploadToOssDTO dto) {
        return ModuleUtils.feignConError(ServiceConstant.BUS_OSS_SERVER, "uploadFile", dto.getFileName());
    }

}
